package Engine.AIUGame
{
	
	/**
	 * 动作列表
	 */

	public class AIAnim
	{
		public var name:String;
		public var delay:Number;
		public var frames:Array;
		public var looped:Boolean; //是否循环播放动作
		
		public function AIAnim(Name:String, Frames:Array, FrameRate:Number=0, Looped:Boolean=true)
		{
			name = Name;
			delay = 0;
			if(FrameRate > 0)
				delay = 1.0/FrameRate;
			frames = Frames;
			looped = Looped;
		}
		
		public function destroy():void
		{
			frames = null;
		}
	}
}